import request from '@/utils/request.js'

// 联想建议的接口
export const searchSuggestion = q => {
  return request({
    method: 'get',
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}

// 搜索结果的接口
export const searchResult = params => {
  return request({
    method: 'get',
    url: '/v1_0/search',
    params
  })
}
